package com.nd.pojo.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods {
    private Integer id;
    @NotNull
    private String goodsSn;
    @NotNull
    private String name;

    private Integer categoryId;

    private Integer brandId;

    private String[] gallery;

    private String keywords;

    private String brief;

    private Boolean isOnSale;

    private Short sortOrder;

    private String picUrl;

    private String shareUrl;

    private Boolean isNew;

    private Boolean isHot;

    private String unit;
    @DecimalMin(value = "0.00", message = "价格数据有误！")
    private BigDecimal counterPrice;
    @DecimalMin(value = "0.00", message = "价格数据有误！")
    private BigDecimal retailPrice;

    private String detail;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;




}